#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int a = 66, b = 99;
	int m = 0;
	int t = 0;
	if (m = (a > b ? b : a))
	{
		for (int i = 2; i < m; i++)
		{
			if (a % i == 0 && b % i == 0)
			{
				//printf("%4d", i);
				t = i;
			}
		}
	}
	printf("%d", t);
}